var jsonPathData = "https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json";
$(function () {
    var sex = $("#sex").val();
    if (sex === "女"){
        jsonPathData = "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json"
    }
    L2Dwidget.init({
        "model": {
            jsonPath: jsonPathData,
            "scale": 1
        },
        "display": {
            "position": "right", //看板娘的表现位置
            "width": 100,  //小萝莉的宽度
            "height": 200, //小萝莉的高度
        },
        "mobile": {
            "show": true,
            "scale": 0.5
        },
        "react": {
            "opacityDefault": 0.7,
            "opacityOnHover": 0.2
        }
    });
})
